package org.point.service.impl;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

import org.point.common.service.impl.BaseServiceImpl;
import org.point.common.util.DoPage;
import org.point.dao.UserSignDao;
import org.point.dao.impl.UserSignDaoImpl;
import org.point.domain.UserSign;
import org.point.domain.Users;
import org.point.service.UserSignService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 
 * @ClassName: ConvertRuleDetailServiceImpl  
 * @Description: TODO(这里用一句话描述这个类的作用)  
 * @author Kenny_Z' szqiuk@gmail.com
 * @date 2016年10月23日 下午4:02:01  
 *
 */
@Service("UserSignService")
public class UserSignServiceImpl extends BaseServiceImpl<UserSign, Serializable> implements UserSignService {
	
	@Autowired
	private UserSignDao dao;

	public List<UserSign> findUserSignList(DoPage<UserSign> page) {
		List<UserSign> records = dao.searchForUserSign(page);
		return records;
	}

	public Integer countUserSignForPage(DoPage<UserSign> page) {
		Integer result = dao.searchForUserSignCount(page);
		return result;
	}

	public List<UserSign> searchUserSign(Map<String, Object> map) {
		List<UserSign> records = dao.searchUserSignMap(map);
		return records;
	}

	public DoPage<UserSign> searchCRForPage(DoPage<UserSign> page) {
		List<UserSign> records = dao.searchForUserSign(page);
		Integer totalRecords = dao.searchForUserSignCount(page);
		page.setList(records);
		page.setTotalRecords(totalRecords);
		return page;
	}

	
}
